import dayjs from "dayjs"

/**
 * 格式化时间
 * 
 * @param string time ------------------------------------------必传
 * @param string format ----------------------------------------必传
 * @author huwl
 */
export const formatTime = (time: string, format: string) => {
    return dayjs(time).format(format)
}